package com.woniu.account.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_resource")
public class TResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @TableField("resource_name")
    private String resourceName;

    @TableField("resource_url")
    private String resourceUrl;

    @TableField("parent_id")
    private Integer parentId;

    /**
     * 1 一级菜单 2 二级菜单 3按钮
     */
    @TableField("level")
    private Integer level;


}
